#!/bin/sh

yum -y install python-setuptools && easy_install pip
pip install shadowsocks

cp ./shadowsocks.service /usr/lib/systemd/system/

cp ./shadowsocks.json /etc/

systemctl enable shadowsocks.service
systemctl start shadowsocks.service


firewall-cmd --zone=public --add-port=8388/tcp --permanent
firewall-cmd --zone=public --add-port=8388/udp --permanent

firewall-cmd --zone=public --add-port=8389/tcp --permanent
firewall-cmd --zone=public --add-port=8389/udp --permanent

firewall-cmd --zone=public --add-port=8390/tcp --permanent
firewall-cmd --zone=public --add-port=8390/udp --permanent

firewall-cmd --complete-reload
